package org.qengine.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("questions")
public class QuestionEntity implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer typeID;
    private Integer courseID;
    private Integer knowledgeID;
    @JsonProperty("dLevel")
    private Integer dLevel;

    private String questionStem;
    private String questionAnswer;
    private int answerCount;
    private int wrongCount;
}
